*****************************************
* CONVERTING FILE FROM SHAPEFILE TO DTA.*
* THE INPUT FILE IS FROM THE SPATIAL    *
* JOIN PROCESS WHERE PLANTS ARE JOINED  *
* TO THEIR CORRESPONDING DISSEMINATION  *
* AREA WITH ARCGIS                      *
*****************************************

// Creates the address_da.dta file, which is in the private data directory

clear all
cd "C:\Users\ag191004\OneDrive - UQAM\DataBase\Firmes\scotts\address"
spshape2dta scotts_address_da.shp,replace	
use scotts_address_da.dta, clear
drop  _ID _CX _CY
sort adressid
save "C:\Users\ag191004\OneDrive - UQAM\DataBase\Firmes\scotts\address\address_da.dta",replace
erase scotts_address_da_shp.dta
